package com.magupe.im.web.protocol.request;

import com.alibaba.fastjson.JSON;
import com.magupe.im.web.protocol.Command;
import com.magupe.im.web.protocol.AuthPacket;

public class MessageRequest extends AuthPacket{

    private String id;

    private String message;

    private String fromId;

    private String receiverId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getFromId() {
        return fromId;
    }

    public void setFromId(String fromId) {
        this.fromId = fromId;
    }

    public String getReceiverId(){
        return receiverId;
    }

    public void setReceiverId(String receiverId){
        this.receiverId = receiverId;
    }

    @Override
    public byte getCommand(){
        return Command.MESSAGE_REQUEST;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
